package c.c.a;

import android.content.Context;

public class p1 extends q1 {
    public boolean d;
    public final c e;

    public p1(Context context, c cVar) {
        super(context);
        this.e = cVar;
    }

    public boolean a() {
        return true;
    }

    public long b() {
        return this.d ? Long.MAX_VALUE : 0;
    }

    public long[] c() {
        return w1.f;
    }

    /* JADX WARNING: Missing block: B:29:0x00ce, code skipped:
            if ("success".equals(r1.optString("message", r2)) != false) goto L_0x00d2;
     */
    public boolean d() {
        /*
        r11 = this;
        r0 = r11.e;
        r0 = r0.j();
        if (r0 == 0) goto L_0x00d8;
    L_0x0008:
        r0 = r11.e;
        r0 = r0.a();
        r1 = 0;
        if (r0 == 0) goto L_0x00d5;
    L_0x0011:
        r2 = r11.a;
        r3 = r11.e;
        r3 = r3.a();
        r4 = c.c.a.q.f;
        r4 = r4.getActiveUri();
        r5 = com.bytedance.embedapplog.AppLog.getIAppParam();
        r6 = 1;
        r2 = c.c.a.r.a(r2, r3, r4, r6, r5);
        r3 = new java.lang.StringBuilder;
        r3.<init>(r2);
        r2 = java.util.TimeZone.getDefault();
        r2 = r2.getRawOffset();
        r2 = (float) r2;
        r4 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        r2 = r2 * r4;
        r4 = 1247525376; // 0x4a5bba00 float:3600000.0 double:6.163594306E-315;
        r2 = r2 / r4;
        r4 = -1052770304; // 0xffffffffc1400000 float:-12.0 double:NaN;
        r5 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));
        if (r5 >= 0) goto L_0x0046;
    L_0x0044:
        r2 = -1052770304; // 0xffffffffc1400000 float:-12.0 double:NaN;
    L_0x0046:
        r4 = 1094713344; // 0x41400000 float:12.0 double:5.408602553E-315;
        r5 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));
        if (r5 <= 0) goto L_0x004e;
    L_0x004c:
        r2 = 1094713344; // 0x41400000 float:12.0 double:5.408602553E-315;
    L_0x004e:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r4.append(r2);
        r2 = "";
        r4.append(r2);
        r4 = r4.toString();
        r5 = "timezone";
        c.c.a.q.d(r3, r5, r4);
        r4 = "sim_serial_number";
        r0 = r0.optJSONArray(r4);
        r5 = 0;
        if (r0 == 0) goto L_0x00a7;
    L_0x006d:
        r7 = r0.get(r5);	 Catch:{ JSONException -> 0x00a3 }
        r7 = (org.json.JSONObject) r7;	 Catch:{ JSONException -> 0x00a3 }
        r7 = r7.optString(r4);	 Catch:{ JSONException -> 0x00a3 }
        r8 = 1;
    L_0x0078:
        r9 = r0.length();	 Catch:{ JSONException -> 0x00a3 }
        if (r8 >= r9) goto L_0x009f;
    L_0x007e:
        r9 = r0.get(r8);	 Catch:{ JSONException -> 0x00a3 }
        r9 = (org.json.JSONObject) r9;	 Catch:{ JSONException -> 0x00a3 }
        r9 = r9.optString(r4);	 Catch:{ JSONException -> 0x00a3 }
        r10 = new java.lang.StringBuilder;	 Catch:{ JSONException -> 0x00a3 }
        r10.<init>();	 Catch:{ JSONException -> 0x00a3 }
        r10.append(r7);	 Catch:{ JSONException -> 0x00a3 }
        r7 = ",";
        r10.append(r7);	 Catch:{ JSONException -> 0x00a3 }
        r10.append(r9);	 Catch:{ JSONException -> 0x00a3 }
        r7 = r10.toString();	 Catch:{ JSONException -> 0x00a3 }
        r8 = r8 + 1;
        goto L_0x0078;
    L_0x009f:
        c.c.a.q.d(r3, r4, r7);	 Catch:{ JSONException -> 0x00a3 }
        goto L_0x00a7;
    L_0x00a3:
        r0 = move-exception;
        r0.printStackTrace();
    L_0x00a7:
        r0 = r3.toString();
        r0 = c.c.a.q.b(r0);
        r0 = c.c.a.q.a(r5, r0, r1, r1);
        if (r0 == 0) goto L_0x00c0;
    L_0x00b5:
        r3 = new org.json.JSONObject;	 Catch:{ JSONException -> 0x00bc }
        r3.<init>(r0);	 Catch:{ JSONException -> 0x00bc }
        r1 = r3;
        goto L_0x00c0;
    L_0x00bc:
        r0 = move-exception;
        r0.printStackTrace();
    L_0x00c0:
        if (r1 == 0) goto L_0x00d1;
    L_0x00c2:
        r0 = "message";
        r0 = r1.optString(r0, r2);
        r1 = "success";
        r0 = r1.equals(r0);
        if (r0 == 0) goto L_0x00d1;
    L_0x00d0:
        goto L_0x00d2;
    L_0x00d1:
        r6 = 0;
    L_0x00d2:
        r11.d = r6;
        goto L_0x00d8;
    L_0x00d5:
        c.c.a.m0.b(r1);
    L_0x00d8:
        r0 = r11.d;
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.c.a.p1.d():boolean");
    }

    public String e() {
        return "ac";
    }
}
